/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.logical.allhit.gui.action;

import com.logical.allhit.Kernel;
import com.logical.allhit.gui.ProxyList;
import java.awt.Event;
import java.awt.event.ActionEvent;
import java.awt.event.KeyEvent;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.KeyStroke;

/**
 *
 * @author comp18
 */
public class ProxySettingAction extends AbstractAction {

    public ProxySettingAction() {
        putValue(NAME, bundle.getString("proxysetting.name"));
        putValue(SHORT_DESCRIPTION, bundle.getString("proxysetting.shortdis"));
        putValue(ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_P, Event.CTRL_MASK));
    }

    @Override
    public void actionPerformed(ActionEvent e) {
        try {
            new ProxyList(Kernel.getInstance().getFrame(), true).setVisible(true);
        } catch (Exception ex) {
            Logger.getLogger(ProxySettingAction.class.getName()).log(Level.WARNING, ex.getMessage(), ex);
        }
    }
}
